]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
calendar: Fix quoting issues in notification titles
authorFlorian Müllner <fmuellner@gnome.org>
Sat, 21 Feb 2015 18:08:27 +0000 (19:08 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 21 Feb 2015 18:14:00 +0000 (19:14 +0100)
Markup in notification titles is not support (and never has been).
Therefore the text is run through g_markup_escape_text(), and as
a result we do have to use markup internally to correctly show
legal-but-escape characters like '&' or '"'.

https://bugzilla.gnome.org/show_bug.cgi?id=744894

js/ui/calendar.js

index 97a8523849c27c13815a4d5269743bff6ba87314..eb1dd28b582d43769b77ca4c57ed05e3cae17335 100644 (file)
@@ -1049,7 +1049,7 @@ const Message = new Lang.Class({
 
     setTitle: function(text) {
         let title = text ? _fixMarkup(text.replace(/\n/g, ' '), false) : '';
-        this.titleLabel.text = title;
+        this.titleLabel.clutter_text.set_markup(title);
     },
 
     setBody: function(text) {